-# Haml version of the Yii mainMenu Widget view
-#
  Copy this file to application.components.views
  Enable the Haml view renderer in your config file by configuring it as
  an application component named "viewRenderer" in the application configuration:
  array(
    'components'=>array(
      ......
      'viewRenderer'=>array(
        'class'=>'HamlViewRenderer',
        .... options ....
      ),
    ),
  )
  A good option is 'ugly'=>false to get nicely formatted XHTML
%ul
  - foreach ($items as $item)
    %li= CHtml::link($item['label'],$item['url'], $item['active'] ? array('class' => 'active') : array())